#!/usr/bin/node

const log = console.log;
const koa = require('koa'),
      Router = require('koa-router'),
      bodyparser = require('koa-bodyparser'),
      tasks = require('./routes/tasks.js');

let router = new Router();
let app = new koa();

app.use(bodyparser({enableTypes:['json','form','text']}));
app.use(tasks.routes());
app.listen(8080);

log('hello world');

